﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TelerikAcademyOOPProject
{
    public class Accout:Trader
    {
        private decimal balance;
        private PaymentMethod paymentMethod;

        public decimal Balance
        {
            get { return this.balance; }
            private set { this.balance = value; }
        }

        public PaymentMethod PaymentMethod
        {
            get { return this.paymentMethod; }
            private set { paymentMethod = value; }
        }

        public void Deposit(decimal amount)
        {
            this.balance += amount;
        }

        public void Withdraw(decimal amount)
        {
            this.balance -= amount;
        }

        public void ShowBalance()
        {
            //TODO not enough money
            Console.WriteLine("The current account balance is {0}",balance);
        }
    }
}
